﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSEPT
{
    public class Bib
    {

        public Bib()
        {
            init(0, new User(), new Event(), String.Empty, false);
        }
        public Bib(int id)
        {
            init(id, new User(), new Event(), String.Empty, false);
        }
        public Bib(int reguser, int regevent, string bibnum, bool deleted)
        {
            init(0, new User(reguser), new Event(regevent), bibnum, deleted);
        }
        public Bib(User reguser, Event regevent, string bibnum, bool deleted)
        {
            init(0, reguser, regevent, bibnum, deleted);
        }
        public Bib(int id, User reguser, Event regevent, string bibnum, bool deleted)
        {
            init(id, reguser, regevent, bibnum, deleted);
        }
        private void init(int id, User reguser,Event regevent, string bibnum, bool deleted)
        {
            ID = id;
            RegisteredUser = reguser;
            RegisteredEvent = regevent;
            BibNumber = bibnum;
            isDeleted = deleted;
        }
        private int _ID;

        public int ID        {
            get { return _ID; }
            set { _ID = value; }
        }

        private User _RegisteredUser;

        public User RegisteredUser
        {
            get { return _RegisteredUser; }
            set { _RegisteredUser = value; }
        }

        private Event _RegisteredEvent;

        public Event RegisteredEvent
        {
            get { return _RegisteredEvent;}
            set { _RegisteredEvent = value;}
        }
	

        private string _BibNumber;

        public string BibNumber
        {
            get { return _BibNumber; }
            set { _BibNumber = value; }
        }

        private bool _isDeleted;

        public bool isDeleted
        {
            get { return _isDeleted; }
            set { _isDeleted = value; }
        }
        
        
    }
}
